import {legacy_createStore as createStore, applyMiddleware} from 'redux'
import countReducer from './count_reducer'
// 用于处理异步action的中间件
import thunk from 'redux-thunk'

const store = createStore(countReducer, applyMiddleware(thunk))

export default store